package nancal.mp.db.es.table

import java.io.*
import nbcp.myoql.db.*
import nbcp.myoql.db.es.*
import nbcp.myoql.db.comm.*
import nbcp.myoql.db.enums.*
import nbcp.myoql.db.es.component.*
import nbcp.base.utils.*
import nbcp.base.extend.*
import nbcp.myoql.db.es.base.*
import org.slf4j.LoggerFactory
import org.springframework.stereotype.*


class ShopActivityPriceMeta (private val parentPropertyName: String): EsColumnName() {
    constructor(_val: EsColumnName): this(_val.toString()) {}

    val price=esColumnJoin(this.parentPropertyName, "price")
    val type=esColumnJoin(this.parentPropertyName, "type")
    val detail=esColumnJoin(this.parentPropertyName, "detail")
    val banner=IdUrlMeta(esColumnJoin(this.parentPropertyName,"banner"))
    val code=esColumnJoin(this.parentPropertyName, "code")
    val rule=ShopActivityRuleDataMeta(esColumnJoin(this.parentPropertyName,"rule"))
    val order=esColumnJoin(this.parentPropertyName, "order")
    val createAt=esColumnJoin(this.parentPropertyName, "createAt")
    val updateAt=esColumnJoin(this.parentPropertyName, "updateAt")
    val id=esColumnJoin(this.parentPropertyName, "_id")

    override fun toString(): String {
        return esColumnJoin(this.parentPropertyName).toString()
    }
}

